package com.xpalive.base.valid;

import com.xpalive.base.valid.adapter.BizValidator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;

@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = BizValidator.class)
public @interface BizValid {

    String message() default "默认验证";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
